﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AbetEvaluation.Business
{
	public class TakenResult
	{
		public Guid ID
		{
			get;
			set;
		}

		public String QuestionText
		{
			get;
			set;
		}

		public String Answer
		{
			get;
			set;
		}

		public String CorrectAnswer
		{
			get;
			set;
		}

		public int Points
		{
			get;
			set;
		}

		public override bool Equals(object obj)
		{
			if (obj == null || GetType() != obj.GetType())
			{
				return false;
			}

			TakenResult other = (TakenResult)obj;
			return this.ID.Equals(other.ID);
		}

		public override int GetHashCode()
		{
			return this.ID.GetHashCode();
		}
	}
}
